package com.yuedou.jylt.http;

import com.yuedou.jylt.dto.AppVersionResponseObj;
import com.yuedou.jylt.dto.DeviceMaterialObj;
import com.yuedou.jylt.dto.ResponseObj;
import com.yuedou.jylt.dto.param.DeviceMaterialParam;
import com.yuedou.jylt.dto.param.InitDeviceParam;
import com.yuedou.jylt.dto.param.WmjOpenDoorParam;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;

/**
 * Author: Mr.Zhou
 * Data:2018/5/28
 */
public interface RequestServices {

    //初始化操作
    @POST("device/init")
    Call<ResponseObj> deviceInit(@Body InitDeviceParam initDevice);

    //获取设备详情操作
    @POST("estate/robot/detailByCpuId")
    Call<ResponseObj> robotDetail(@Body InitDeviceParam initDevice);

    //获取广告操作
    @POST("device/material/list")
    Call<DeviceMaterialObj> materialList(@Body DeviceMaterialParam materialParam);

    //获取APP版本更新信息
    @POST("device/appVersion")
    Call<AppVersionResponseObj> getAppVersion();


    //机器人联动门禁开门
    @POST("wmj/robot/openDoor")
    Call<ResponseObj> wmjOpenDoor(@Body WmjOpenDoorParam wmjOpenDoorParam);

}
